package com.huadi.ssm.service;

import com.huadi.ssm.dao.UsercommentMapper;
import com.huadi.ssm.po.Usercomment;
import com.huadi.ssm.po.UsercommentExample;
import com.huadi.ssm.po.UsercommentKey;

import java.util.List;

public class UsercommentServiceImpl implements UsercommentService{

    private UsercommentMapper usercommentMapper;

    public void setUsercommentMapper(UsercommentMapper usercommentMapper) {
        this.usercommentMapper = usercommentMapper;
    }

    @Override
    public long countByExample(UsercommentExample example) {
        return usercommentMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(UsercommentExample example) {
        return usercommentMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(UsercommentKey key) {
        return usercommentMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Usercomment record) {
        return usercommentMapper.insert(record);
    }

    @Override
    public int insertSelective(Usercomment record) {
        return usercommentMapper.insertSelective(record);
    }

    @Override
    public List<Usercomment> selectByExample(UsercommentExample example) {
        return usercommentMapper.selectByExample(example);
    }

    @Override
    public Usercomment selectByPrimaryKey(UsercommentKey key) {
        return usercommentMapper.selectByPrimaryKey(key);
    }

    @Override
    public int updateByExampleSelective(Usercomment record, UsercommentExample example) {
        return usercommentMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Usercomment record, UsercommentExample example) {
        return usercommentMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Usercomment record) {
        return usercommentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Usercomment record) {
        return usercommentMapper.updateByPrimaryKey(record);
    }
}
